package com.senlan.water.dao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.senlan.water.dao.domain.ShortMessageTemplate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.senlan.water.dto.sms.ShortMessageTemplateAddDTO;
import com.senlan.water.dto.sms.ShortMessageTemplateEditDTO;
import com.senlan.water.dto.sms.ShortMessageTemplateSearchDTO;

/**
* @author 10499
* @description 针对表【short_message_template(短信模板)】的数据库操作Service
* @createDate 2024-12-11 09:45:04
*/
public interface ShortMessageTemplateService extends IService<ShortMessageTemplate> {

    /**
     * 新增
     * @param addDTO
     * @return
     */
    Boolean addNew(ShortMessageTemplateAddDTO addDTO);

    /**
     * 根据id编辑
     * @param editDTO
     * @return
     */
    Boolean editById(ShortMessageTemplateEditDTO editDTO);

    /**
     * 启用
     * @param id
     * @return
     */
    Boolean enable(Long id);

    /**
     * 停用
     * @param id
     * @return
     */
    Boolean disable(Long id);

    /**
     * 删除
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    /**
     * 分页查询
     * @param searchDTO
     * @return
     */
    Page<ShortMessageTemplate> getPage(ShortMessageTemplateSearchDTO searchDTO);
}
